<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>用户信息</h1>
    <p>用户名：{{user|upper}}</p>
    <p>年龄：{{age}}</p>
    <p>四大遗珠：{{books.1}}</p>

    <ul>
        <li>{{books.0}}</li>
        <li>{{books.1}}</li>
        <li>{{books.2}}</li>
        <li>{{books.3}}</li>
    </ul>

    <p>{{info.name}}</p>
    <p>{{info.age}}</p>
    <p>{{info.gender}}</p>

    <p>影视区</p>
    {% if age > 18 %}
    <ul>
        <li>日韩</li>
        <li>欧美</li>
        <li>国产</li>
    </ul>
    {% else %}
    <ul>
        <li>熊大熊二</li>
        <li>黑猫警长</li>
        <li>大头儿子</li>
    </ul>
    {% endif %}

    <hr>

    <p>图书</p>
    <ul>
    {% for book in books%}
        <li>{{book}}</li>
    {% endfor %}
    </ul>

</body>
</html>